<!DOCTYPE html>
<html>

<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
	<script src="../assets/require.js"></script>
	<!--<script src="require.js" data-main="./aa"></script>-->
	<script src="../scripts/aa.js"></script>
</head>

<body>
	<p>
		nothing happens
	</p>

	<script>
		define("bb", function () {
			return {
				name: 'bb',
				hello: function () {
					alert('bb');
				}
			};
		});

		require(["bb"], function (x) {
			x.hello();
		});

		require(["aa"], function (x) {
			x.hello();
		});
	</script>
</body>

</html>